<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    
    <div id="app">
        <ul>
            <li v-for="(item, index) in fruits" :key="index">{{ item.name }} {{ item.age }}</li>
            
            
          </ul>
    </div>
    <script>
        const { createApp, ref } = Vue;
        createApp({
       data() {
        return {
          // 初始对象数组
          fruits: [
            { name: '张三', age: 20 },
            { name: '李四', age: 22 }
          ]
        };
      }
    }).mount('#app');

    </script>
</body>

</html>